package com.energy.analysis.weather.mapper;

import java.util.List;
import java.util.Map;

import com.energy.analysis.comm.base.BaseMapper;
import com.energy.analysis.comm.page.Page;
import com.energy.analysis.weather.entity.WeatherData;
import com.energy.analysis.weather.entity.WeatherDataStal;

public interface WeatherMapper extends BaseMapper<WeatherData>{
	Integer insertStal(WeatherDataStal stal);
	//获取当前最新一条天气
	WeatherData getWeatherDataByDay(String day);
	//获取当前最新一条实时天气
	WeatherDataStal getWeatherDataStalByDay(String crtDt);
	
	List<WeatherData> getWeatherDay(String[] days);
	//分頁查詢平均溫度
	List<WeatherData> getAvgTemList(Page<WeatherData> page);
	int getAvgTemListCount(Page<WeatherData> page);
	int getWeatherByDay(String day);
	int updateByDay(WeatherData weatherData);
	
	List<Map<String,Object>> getStalWeatherByDay(String day);
}
